import moment from 'moment'

// 薪资应付账单
export const ExpenseManageListThead = [
  {
    type: 'selection',
    minWidth: 60,
    align: 'center',
    fixed: 'left'
  },
  {
    title: '编码',
    key: 'mergeID',
    minWidth: 200
  },
  {
    title: '支付日期',
    key: 'payTime',
    minWidth: 150,
    render: (h, params) => {
      const text = params.row.payTime ? moment(params.row.payTime).format('YYYY-MM-DD') : ''
      return h('span', text)
    }
  },
  {
    title: '支付银行',
    key: 'payBank',
    minWidth: 150
  },
  {
    title: '报销人',
    key: 'name',
    minWidth: 150
  },
  {
    title: '所属部门',
    key: 'department',  
    minWidth: 150
  },
  {
    title: '报销日期',
    key: 'reimburseTime',
    minWidth: 150,
    render: (h, params) => {
      const text = params.row.reimburseTime ? moment(params.row.reimburseTime).format('YYYY-MM-DD') : ''
      return h('span', text)
    }
  },
  {
    title: '记账日期',
    key: 'payTime',
    minWidth: 150,
    render: (h, params) => {
      const text = params.row.recordTime ? moment(params.row.recordTime).format('YYYY-MM-DD') : ''
      return h('span', text)
    }
  },
  {
    title: '费用类型',
    key: 'costType',  
    minWidth: 150
  },
  {
    title: '银行付款金额',
    key: 'paymentAmount',  
    minWidth: 150
  },
  {
    title: '冲借支金额',
    key: 'borrowingAmount',  
    minWidth: 150
  },
  {
    title: '报销金额',
    key: 'reimburseAmount',  
    minWidth: 150
  },
  {
    title: '财务科目',
    key: 'financeSubject',  
    minWidth: 150
  },
  {
    title: '复核金额',
    key: 'checkAmount',  
    minWidth: 150
  },
  {
    title: 'KFC备注',
    key: 'kfcRemark',  
    minWidth: 150
  },
  {
    title: '备注',
    key: 'remark',  
    minWidth: 150
  },
  {
    title: '流程单号',
    key: 'processNo',  
    minWidth: 150
  }
]